package cn.kgc.disk.aop;

import cn.kgc.disk.Dao.UsbDisk;
import org.apache.log4j.Logger;
import org.aspectj.lang.JoinPoint;

public class AopSpring {
    private Logger logger=Logger.getLogger(AopSpring.class);
    public void before(JoinPoint joinPoint){
        joinPoint.getSignature();
        logger.info("前置增强，有人调用read方法");
    }
    public void after(){
        logger.info("前置增强，有人完成调用read方法，完成");
    }
}
